package cn.com.dwr.modules.app.mq;

import cn.com.dwr.modules.app.config.RabbitConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MqReceiver {

    @RabbitListener(queues = RabbitConfig.TTL_ORDER_CANCEL_QUEUE)
    public void cancelOrderHandle(long orderId){

        // 取消订单

        log.info("正在取消订单 - {}", orderId);
    }
}
